import React from 'react'
import zhCN from 'antd/lib/locale/zh_CN'
import { Pagination, ConfigProvider } from 'antd';
import './MyPagination.css'
export default function MyPagination(props) {
    return (
        <div id='MyPagination' >
            <ConfigProvider locale={zhCN}>
                <Pagination
                    total={props.total}
                    onChange={(page, pagesize) => props.onPageChange(page, pagesize)}
                    showSizeChanger
                    showQuickJumper
                    showTotal={(total) => `总共 ${total} 条`}
                />
            </ConfigProvider>
        </div>
    )
}


